import requests
from fake_useragent import UserAgent

ua = UserAgent().random


headers = {
    "referer": "https://wh.58.com/chuzu/?PGTID=0d100000-0009-e3ba-f1fc-ace253419909&ClickID=1",
    "user-agent": ua
}
for page in range(69, 71):
    url = f"https://wh.58.com/chuzu/pn{page}/"
    params = {
        "ClickID": "128"
    }
    response = requests.get(url, headers=headers,params=params)

    print(response.text)
    print(response)
    with open(f"58_{page}.html", "w", encoding="utf-8") as f:
        f.write(response.text)